import fly from '../utils/request'

// 用户登录, // fly.请求方式(接口地址，参数对象)
export const login = (data) => {
    return fly.post('/authorizations',data)
}
export const send = (data) => {
    return fly.get(`/sms/codes/${data}`)
}
// 获取登录信息
export const user = () => {
    return fly.get(`/user`)
}
//编辑用户资料
export const userData = () => fly.get('/user/profile')

//修改用户头像
export const userPhoto = () => fly.patch('/user/photo')